package com.spi.soconversion.orders.conversion;

public enum CofiToMcfLinesItemTypes {

	EFEE("EFEE"),
	STD("STD"),
	PINS("3PINS"),
	ASBL("ASBL"),
	SPE("SPE"),
	CON("CON"),
	CUS("CUS"),
	DEL("DEL"),
	HU("HU"),
	INS("INS"),
	LNR("LNR"),
	NC("NC"),
	SB("SB"),
	SP("SP"),
	WTY("WTY"),
	WRFEE("WRFEE");	
	
	private String beanProperty;
	
	private CofiToMcfLinesItemTypes(String beanProperty) {
		this.beanProperty= beanProperty;
	}

	public String getBeanProperty() {
		return beanProperty;
	}
	
	public static CofiToMcfLinesItemTypes getItemType(String code) {
		for (CofiToMcfLinesItemTypes sct : CofiToMcfLinesItemTypes.values()) {
			
			if (sct.getBeanProperty().equals(code)) {
				return sct;
			}
		}
		return null;
	}
}
